/**
 * Created by chenjianjun on 16/6/24.
 */
import Router from 'koa-router'
import proxy from 'koa-proxy'
import config from '../config'

const prodProxyRouter = new Router()
prodProxyRouter.get('/(ref|api)/*', proxy({
  host: `http://${config.api_host}:${config.api_port}`,
  map: (path) => {
    return path
  }
}))

export { prodProxyRouter }

